<?php /* Smarty version 2.6.21, created on 2012-12-03 23:52:20
         compiled from Helper.tpl.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'Helper.tpl.html', 109, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Db Php Helper</title>
<script type="text/javascript" src="js/Helper.js">

</script>

</head>

<body>
<div align="center">
<form action="Creater.php" method="post" name="form1" target="_blank" id="form1">
<textarea name="info" cols="100" rows="5" readonly="readonly"><?php echo $this->_tpl_vars['info']; ?>
</textarea>



<input name="tableSize" type="hidden" value="<?php echo $this->_tpl_vars['tableSize']; ?>
" />
<p><?php $_from = $this->_tpl_vars['tables']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['ta'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ta']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['tab']):
        $this->_foreach['ta']['iteration']++;
?></p>
<hr />

<table width="100%" border="1">
  <tr>
    <td width="50%">Table Name:<span class="sp"><?php echo $this->_tpl_vars['tab']->tableName; ?>
</span></td>
    <td width="50%">Alias Name:<span class="sp"><?php echo $this->_tpl_vars['tab']->aliasName; ?>
</span></td>
    </tr>
</table>

  <input name="tableName<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['tab']->tableName; ?>
" />
  <input name="aliasName<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['tab']->aliasName; ?>
" />
  <input name="columnSize<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['tab']->columnSize; ?>
" />
 
  
</p>
<table  border="1">
  <tr>
    <td width="100">Field</td>
    <td width="100">Type</td>
    <td width="100">attribute name</td>
    <td width="100"> Load/<br />Insert/<br />Update</td>
    <td width="100">EscapeString</td>
    <td width="100">Fixed Value</td>
    <td width="100">EqualCondition</td>
    <td width="100">Mininum Condition</td>
    <td width="100">Maximum Condition</td>
    <td width="100">LikeHead</td>
    <td width="100">LikeTail</td>
    
    </tr>
  
  <?php $_from = $this->_tpl_vars['tab']->data; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['oneFild']):
        $this->_foreach['foo']['iteration']++;
?>
  <input name="extra<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->Extra; ?>
" />
  <input name="newType<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->newType; ?>
" />
  <input name="newTypeSize<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->newTypeSize; ?>
" />
   <input name="field<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->Field; ?>
" />
  <tr bgcolor="<?php if (( ($this->_foreach['foo']['iteration']-1) % 2 == 0 )): ?>#99FF00 <?php else: ?>#CC99FF<?php endif; ?>">
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->Field; ?>
<?php if ($this->_tpl_vars['oneFild']->Extra == 'auto_increment'): ?> (A_I)<?php endif; ?></td>
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->newType; ?>
:<?php echo $this->_tpl_vars['oneFild']->newTypeSize; ?>
</td>
    <td>&nbsp;
      <input name="attribute<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="text" value="<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
"/></td>
    <td><label>
      <input type="checkbox" name="need<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='need<?php echo ($this->_foreach['foo']['iteration']-1); ?>
' checked="checked"  />
    </label></td>   
    <td><label>
      <input type="checkbox" name="escapeStr<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='escapeStr<?php echo ($this->_foreach['foo']['iteration']-1); ?>
' <?php if ($this->_tpl_vars['oneFild']->enableEscape): ?>checked="checked" <?php endif; ?> />
      </label></td>  
      <td>
      <input name="fixedValue<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="text" size="10" />
      </td> 
    <td><label>
      <input type="checkbox" name="equalCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='equalCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
'  />
      </label></td>    
    <td><label>
      <strong>&gt;</strong>
<input type="checkbox" name="minCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='minCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
'  /><br />
      <strong>=</strong>
<input type="checkbox" name="minAndEqualCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='minAndEqualCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
'  />
      </label></td>
    <td><label>
      &gt;
      <input type="checkbox" name="maxCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='maxCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
'  /><br />
      =
      <input type="checkbox" name="maxAndEqualCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='maxAndEqualCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
'  />
      </label></td>
    <td><label>
      <input type="checkbox" name="likeHeadCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='likeHeadCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
'  />
      </label></td>
    <td><label>
      <input type="checkbox" name="likeTailCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='likeTailCondition<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
' />
      </label></td>
    </tr>
  <?php endforeach; endif; unset($_from); ?>
</table>
<br />
Defined Table Name:<input name="definedTableName<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="text" value="<?php echo $this->_tpl_vars['tab']->definedTableName; ?>
" size="40" />
<?php endforeach; endif; unset($_from); ?>



<p>
  <label>
    Class Name:<input name="className"  size="34" type="text" id="className" value="<?php echo $this->_tpl_vars['className']; ?>
" />
  </label>
  
</p>
<p>
  <label>DB Class Path:
    <input name="dbClassPath" type="text" id="DB Class Path:" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['dbClassPath'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" size="90" />
  </label>
</p>
<p>Sql part:
  <label>
    <input name="joinSql" type="text" id="joinSql" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['joinSql'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" size="170" />
  </label>
</p>
<table width="842" border="1">
  <tr bgcolor="#CC99FF">
    <td ><input name="input4" type="submit" onclick="phpClassMethod()" value="CreatePhpClass" />
    <input type="checkbox" name="class_file_download_mode" value="1"/>Download file
    </td>
  </tr>
    <tr bgcolor="#99FF00">
    <td ><p>Delete Function Name:
        <label>
        <input name="deleteFunctionName" type="text" id="deleteFunctionName" value="Delete" />
      </label>
    </p>
      <p>
        <input name="input4" type="submit" onclick="deleteMethod()" value="CreateDelete" />
      </p></td>
  </tr>

  <tr bgcolor="#CC99FF">
    <td ><p>Insert Function Name:
      <label>
        <input name="creatFunctionName" type="text" id="creatFunctionName" value="Create" />
      </label>
    </p>
      <p>
        <label>
          <input type="checkbox" name="insertAutoIncreasingID" id="insertAutoIncreasingID" value="1"/>
          Insert Auto IncreasingID</label>
      </p>
      <p>
        <input name="input4" type="submit" onclick="insertMethod()" value="CreateInsert" />
      </p></td>
  </tr>
  <tr bgcolor="#99FF00">
    <td ><p>Update Function Name:
      <label>
        <input name="updateFunctionName" type="text" id="updateFunctionName" value="Update" />
      </label>
    </p>
      <label>
          <input type="checkbox" name="updateAutoIncreasingID" id="insertAutoIncreasingID" value="1"/>
          Update Auto IncreasingID</label>
      <p>
        <input name="input4" type="submit" onclick="updateMethod()" value="CreateUpdate" />
      </p></td>
  </tr>
  <tr bgcolor="#CC99FF">
    <td bgcolor="#CC99FF">
      <p>Load Function Name:
  <input name="lfunctionName" type="text" value="Load" size="50" maxlength="100" />
  </p>
      <p><br />
        <input name="input2" type="submit" onclick="loadMethod()" value="CreateLoadMethod" />
      </p></td>
  </tr>
  <tr bgcolor="#CC99FF">
    <td bgcolor="#99FF00">
      <p>IsExist Function Name:
        <input name="iefunctionName" type="text" value="IsExist" size="50" maxlength="100" id="iefunctionName" />
  </p>
      <p><br />
        <input name="input2" type="submit" onclick="isExistMethod()" value="CreateIsExistMethod" />
      </p></td>
  </tr>
  <tr bgcolor="#99FF00">
    <td bgcolor="#CC99FF">
    
   
      <p>Search Function Name:
  <input name="sfunctionName" type="text" value="Search" size="50" maxlength="100" />
  <br />
        Sort option:
        
        <input name="sortOption" type="text" id="sortOption" value="0" size="5" maxlength="3" />
        <label>
          <input type="checkbox" name="createPageFunction" id="createPageFunction"  value="1"/>
          Create Paged Search Function</label>
      </p>
      <p><br />
        <input name="input" type="submit" onclick="searchMethod()" value="CreateSearchMethod" />
      </p></td>
  </tr>
  <tr bgcolor="#CC99FF">
    <td bgcolor="#99FF00"><p>
      <label>
        SmartName:<input name="smartName" type="text" id="smartName" value="template" />
        <br />
        Imput textarea flag:<input name="inputTextLimit" type="text" id="smartName" value="40" />
        <br />
        <br />
      </label>
        <input name="input3" type="submit" onclick="helpCode()" value="CreateHelpCode" />
      </p></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>
  <input name="act" type="hidden" value="a" />
</p>
<p>&nbsp;</p>
</form>
<p>&nbsp;</p>
</div>
<br />
<br /></body>

</html>